<link href="__CDN__/assets/css/app_new.css" rel="stylesheet">

<div class="all-container">
    <div class="login-register-header">
        <div class="back-btn"><a href="javascript:history.go(-1)"><img src="__CDN__/map/images/return@2x.png" alt="返回"/></a></div>
        <div class="am-tabs" data-am-tabs="{noSwipe: 1}" id="doc-tab-demo-2">
            <div class="invite-header-c d-flex">
                <span class="add-agent-title">加入代理</span>
            </div>
        </div>
    </div>
    <ul class="add-agent-body">
        <li>
            <p>大区代理</p>
            {if condition="$prox != ''"}
            <button style="    border: 1px solid #f8f8f8;" ></button>
            {else}
            <button onclick="opens(5)" {$prox}>立即申请</button>
            {/if}

        </li>
        <li>
            <p>省级代理</p>
            {if condition="$prox != ''"}
            <button style="    border: 1px solid #f8f8f8;" ></button>
            {else}
            <button onclick="opens(1)" {$prox}>立即申请</button>
            {/if}

        </li>
        <li>
            <p>市级代理</p>
            {if condition="$prox != ''"}
            <button style="    border: 1px solid #f8f8f8;" ></button>
            {else}
            <button onclick="opens(2)" {$prox}>立即申请</button>
            {/if}

        </li>
        <li>
            <p>区域代理</p>
            {if condition="$prox != ''"}
            <button style="    border: 1px solid #f8f8f8;" ></button>
            {else}
            <button onclick="opens(3)" {$prox}>立即申请</button>
            {/if}

        </li>
        <li>
            <p>个人代理</p>
            <p>
                <span></span><i></i>
            </p>
            {if condition="$pro != ''"}
            <button style="    border: 1px solid #f8f8f8;" ></button>
            {else}
            <button onclick="opens(4)" {$pro}>立即申请</button>
            {/if}


        </li>
    </ul>
</div>
<style>
    #bt{
        background-color: transparent;
        width: 1.6rem;
        height: .6rem;
        text-align: center;
        line-height: .6rem;
        font-size: .26rem;
    }
</style>
<script>
    function opens(name){
        window.location.href='{$http_url}/index/user/proxy?v='+name;
    }



</script>

